/*
 * RC5.c
 *
 * Created: 08.09.2011 17:03:17
 *  Author: halfmann
 */ 

#include <avr/io.h>
#include <avr/interrupt.h>
//#include <avr/signal.h>
#include <stdlib.h>


#define uchar unsigned char
#define uint unsigned int

#define xRC5_DDR	DDRB	// IR data direction register
#define	xRC5_IN		PINB	// IR pin register
#define	xRC5		PB0		// IR input (low active) pin number

//#define	XTAL		11.0592e6
//#define	XTAL		7.3728e6
//#define XTAL		5e6

#ifndef XTAL
	#define XTAL 14745600UL
#endif

extern uint	rc5_data;				// store result

extern void rc5_init(void);			// initialization